package com.TwinBlade.PicturePassword;

import a.a.a.a;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.Signature;
import android.preference.PreferenceManager;

public class bd
{
  public static boolean a(Context paramContext)
  {
    boolean bool1 = true;
    PackageManager localPackageManager = paramContext.getPackageManager();
    SharedPreferences localSharedPreferences = PreferenceManager.getDefaultSharedPreferences(paramContext);
    try
    {
      boolean bool2 = a(paramContext, localPackageManager);
      boolean bool3 = localSharedPreferences.getBoolean("LVL", true);
      if ((!bool3) || (!bool2))
        bool1 = false;
      return bool1;
    }
    catch (PackageManager.NameNotFoundException localNameNotFoundException)
    {
      String str = localSharedPreferences.getString("PayPalKey", "-1");
      if (str.equals("-1"))
        return false;
      return a(paramContext, str);
    }
  }

  public static boolean a(Context paramContext, PackageManager paramPackageManager)
  {
    return "LTE3NTE3ODIwODg=".equals(a.a(Integer.toString(paramPackageManager.getPackageInfo("com.TwinBlade.PicturePasswordPlusKey", 64).signatures[0].hashCode())));
  }

  private static boolean a(Context paramContext, String paramString)
  {
    boolean bool = false;
    Account[] arrayOfAccount = AccountManager.get(paramContext).getAccountsByType("com.google");
    String str = new be().b(paramString) + "@gmail.com";
    int i = arrayOfAccount.length;
    for (int j = 0; ; j++)
    {
      if (j >= i)
        return bool;
      if (arrayOfAccount[j].name.equals(str))
        bool = true;
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.TwinBlade.PicturePassword.bd
 * JD-Core Version:    0.6.2
 */